import request from '@/utils/request';
import { HttpUrl } from '../../config/web.config';

export async function query() {
  return request('/api/users');
}

export async function queryCurrent() {
  return request('/api/currentUser');
}

export async function getBackupData(owner) {
  return request( HttpUrl + '/noticeboard/generateExcelFile?owner=' + owner, {
    credentials: "omit",
  });
}